// =================================================================
// File: File.cpp
// Desc: Contains implementations of functions in File class
// =================================================================

// =================================================================
// INCLUDES
// =================================================================

#include "File.h"

// =================================================================
// FUNCTIONS
// =================================================================

// =================================================================
// Name: File::File
// Desc: Initializes a File object with set values
// Args: int fd - file descriptor
//       int inode_index - inode assigned to the file
//       int mode - read or write operation
//       int seek_offset - current location in file
// =================================================================
File::File(int fd, int inode_index, int mode, int seek_offset) :
    fd(fd), inode_index(inode_index), mode(mode), seek_offset(seek_offset) {
}

// =================================================================
// Name: File::File
// Desc: Initializes a File object with default values
// =================================================================
File::File()
{
    fd = -1;
    inode_index = -1;
    mode = READ_MODE;
    seek_offset = 0;
}

// =================================================================
// Name: File::~File
// Desc: File destructor
// =================================================================
File::~File()
{
}

